www.gusucode.com > 人脸识别所用的图像库matlab源码程序 > 生成调制信号数据集 信号集包括2ASK,2PSK,2FSK,4ASK,4PSK,4FSK,8ASK,8PSK,8FSK,16QAM,64QAM/modulation-recognition-dataset-master/qam.m
% ���������ź� ���������ݣ��������ʣ��ز�Ƶ�ʣ�������,���ƽ����� function s = qam(d,fb,fc,fs,M) DataConstel = qammod(d, M, 'Gray'); % ������ %DataConstel = modulate(h,d); % ���� N = length(DataConstel); K = fs/fb; s=zeros(1,N*K); for i=1:K s(i:K:end)=DataConstel; end % t = (0:N*K-1)/fs; % carrier = exp(1i*(2*pi*t*fc)); % s = real(DataConstel_up).*real(carrier)+imag(DataConstel_up).*imag(carrier);